
LIBOBJ = wrapsock.o error.o wrapfork.o writen.o readn.o readline.o waitpid.o signal.o wrapstdio.o\
		 str_echo.o str_cli.o wrapselect.o wrapshutdown.o dg_cli.o connect_timeo.o

all:${LIBOBJ}

wrapsock.o:
	gcc -c wrapsock.c 
error.o:
	gcc -c error.c

wrapfork.o:
	gcc -c wrapfork.c

writen.o:
	gcc -c writen.c

readn.o:
	gcc -c readn.c

readline.o:
	gcc -c readline.c

waitpid.o:
	gcc -c waitpid.c

signal.o:
	gcc -c signal.c
	
wrapstdio.o:
	gcc -c wrapstdio.c

str_echo.o:
	gcc -c str_echo.c

str_cli.o:
	gcc -c str_cli.c

wrapselect.o: 
	gcc -c wrapselect.c

wrapshutdown.o:
	gcc -c wrapshutdown.c

connect_timeo.o:
	gcc -c connect_timeo.c
	
dg_cli.o:
	gcc -c dg_cli.c
	
ar:
	ar rcv ../libchen.a ${LIBOBJ} 
clean:
	-rm *.o
